# Copyright (c) 2021-2022 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.


cmake_minimum_required(VERSION 3.3.2 FATAL_ERROR)
project(es2pandad)

set(SOURCES
    lsp_server_main.cpp)


panda_add_executable(es2pandad ${SOURCES})
panda_gen_options(TARGET es2pandad YAML_FILE options.yaml GENERATED_HEADER
                  es2pandad_options.h)
panda_target_include_directories(es2pandad PUBLIC ${PANDA_BINARY_ROOT})
panda_target_include_directories(es2pandad PUBLIC ${PANDA_ROOT}/libpandabase)
panda_target_include_directories(es2pandad PUBLIC ${PANDA_ROOT}/tools/language-server)

panda_target_link_libraries(es2pandad es2pandad-lib arkbase)
###############################################################################
#  Other stuff
#

#panda_gen_options(TARGET es2pandad YAML_FILE options.yaml GENERATED_HEADER es2pandad_options_gen.h)
panda_add_sanitizers(TARGET irtoc SANITIZERS ${PANDA_SANITIZERS_LIST})
